package seventhwork.onetwo;

import firstwork.HelloWorld;

/**
 * @author ：chenzikang
 * @date ： 2020/3/31
 */


interface Inter {

    void show();

}

class Outer{
    public static Inter method(){
        Inter inter = new Inter() {
            @Override
            public void show() {
                System.out.println("HelloWorld");
            }
        };
        return inter;
    }

}


public class OuterDemo {
    public static void main(String[] args) {


        Outer.method().show();
    }


}
